using AutoMapper;
using EMS.system.Entityies.MasterData.CustomerManagementModel;
using EMS.system.Entityies.MasterData.SupplierManagementModel;
using EMS.system.Entityies.MasterData.UnitMeasureModel;
using EMS.system.Entityies.MasterData.WorkstationModel;
using EMS.system.Entityies.WarehouseManagement.SupplierReturnModel;
using EMS.system.Entityies.WarehouseManagement.WarehouseSettingsModel;
using EMS.system.IEntityAppService.MasterData.CustomerManagementIService.CustomerManagementDTO;
using EMS.system.IEntityAppService.MasterData.SupplierManagementIService.SupplierManagementDto;
using EMS.system.IEntityAppService.MasterData.SupplierReturnService.SupplierReturnDto;
using EMS.system.IEntityAppService.MasterData.UnitMeasureService.UnitMeasureDTOs;
using EMS.system.IEntityAppService.MasterData.WorkstationService.WorkstationDTOs;
using EMS.system.IEntityAppService.WarehouseManagement.WarehouseSetup.WarehouseSetupDTO;

namespace EMS.system.Web;

public class systemWebAutoMapperProfile : Profile
{
    public systemWebAutoMapperProfile()
    {
        CreateMap<UnitMeasureDTO,UnitMeasure>().ReverseMap();
        CreateMap<WorkstationDTO, Workstation>().ReverseMap();
        CreateMap<SupplierReturnDTO, SupplierReturn>().ReverseMap();
        CreateMap<SelectSupplierManagementDto, SupplierManagement>().ReverseMap();
        CreateMap<CustomerManagementInsertDTO, CustomerManagement>();
        CreateMap<CustomerManagement, CustomerManagementInsertDTO>();
        CreateMap<CustomerManagementUpdateDTO, CustomerManagement>();
        CreateMap<CustomerManagement, CustomerManagementInsertDTO>();

        CreateMap<WarehouseSetupInsertDTO, WarehouseSettings>();
        CreateMap<WarehouseSettings, WarehouseSetupInsertDTO>();
        CreateMap<WarehouseSetupUpdateDTO, WarehouseSettings>();
        CreateMap<WarehouseSettings, WarehouseSetupUpdateDTO>();


        //Define your object mappings here, for the Web project
    }
}
